﻿using System.Collections.Generic;
using Netkk.Common.Models;
using Netkk.Data.Provider;
using System;

namespace Netkk.Library.Repositories
{
    public class LinkRepository : ILinkRepository
    {
        private static DataProvider Provider
        {
            get { return DataProviderManager.Provider; }
        }

        public IEnumerable<Link> Select()
        {
            return Provider.SelectAllLinks();
        }

        public void Save(Link link)
        {
            Provider.SaveLink(link);
        }

        public void Delete(Link link)
        {
            Provider.DeleteLink(link);
        }

    }

}
